package lovoStudy_9_8.Game;

/**
 * Created with Intellij IDEA
 * Description:
 *
 * @ return:
 * @ author:zxl
 */

/**
 * 农民类
 * */
public class Farmer extends Role implements Treat, Mine,Attack {
    public Farmer() {
    }

    public Farmer(String name, int level) {
        super(name, level);
    }
    @Override
    public void selfIntroduce() {
        System.out.println("我名字叫: " + this.name + ", 等级为" + this.level + ", 职业是一名农民");
    }
    /**
     * 采矿
     * */
    @Override
    public void mine(){
        System.out.println(this.name + "使用了挖矿");
    }

    @Override
    public void treat() {
        System.out.println(this.name + "使用了治疗");
    }

    @Override
    public boolean attack() {
        System.out.println(this.name + "使用了攻击");
        return false;
    }
}
